#include <math.h>
#include <Precision.h>

unsigned int Precision::accuracy_m = 2;

double Precision::cut(const double para_i)
{
    unsigned int resNum = pow(10,accuracy_m);
    return (floor(para_i * resNum)/ resNum);
}

double Precision::round(const double para_i)
{
    unsigned int resNum = pow(10,accuracy_m);
    unsigned int temp = (para_i * resNum * 10 + 5)/10;
    return ((double)temp/resNum);
}

